package day06;

import java.io.File;
import java.util.Arrays;

/**
 * 获取并输出当前目录下的所有文件和目录的名字
 * @author Bonnie
 *
 */
public class Test04 {
    public static void main(String[] args) {
        /*File file = new File("a");
        File file1=file.getAbsoluteFile();
        File file2=file1.getParentFile();
        System.out.println(file2);
        System.out.println(Arrays.toString(file2.listFiles()));*/
        File file = new File("src");
        System.out.println(Arrays.toString(file.listFiles()));

    }
	
}
